package com.example.paytext.service;

import com.example.paytext.VO.PayRecordVO;
import com.example.paytext.domain.PayRecord;
import com.example.paytext.mapper.PayRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayRecordService {
    @Autowired
    private PayRecordMapper payRecordMapper;
    /**
     * 4.查询用户钱包金额变动明细的接口
     */
    public List<PayRecordVO> getPayRecord(String userId){
       return payRecordMapper.getPayRecord(userId);
    }
}
